package cn.moefly.sample.component.event;

import cn.moefly.common.annotation.AsyncEventListener;
import cn.moefly.common.helper.SpringContextHelper;
import org.springframework.context.ApplicationEvent;

/**
 * 消息驱动的时候，对所有特定消息建立自己的消息对象，并使用springContext进行广播
 * springContext可在{@link SpringContextHelper}获取
 *
 * 监听event可以采取3种方式
 *      1. 继承 {@link org.springframework.context.ApplicationListener}
 *      2. Spring提供注解 {@link org.springframework.context.event.EventListener}
 *
 *      3. 自定义异步处理注解 {@link AsyncEventListener}
 */
public class PlaceHolder extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public PlaceHolder(Object source) {
        super(source);
    }
}
